home *** CD-ROM | disk | FTP | other *** search
/ MacTech 1 to 12 / MacTech-vol-1-12.toast / Source / MacTech® Magazine / Volume 06 - 1990 / 06.11 Nov 90 / Transition Source / General.h < prev    next >
Encoding:
C/C++ Source or Header  |  1990-08-02  |  1.2 KB  |  70 lines  |  [TEXT/KAHL]

  1. /************************************
  2. General.h
  3.  
  4. General and useful constants
  5. ************************************/
  6.  
  7. #define _H_General
  8.  
  9. #ifndef TRUE
  10. #define TRUE (1)
  11. #endif
  12.  
  13. #ifndef true
  14. #define true (1)
  15. #endif
  16.  
  17. #ifndef FALSE
  18. #define FALSE (0)
  19. #endif
  20. #ifndef false
  21. #define false (0)
  22. #endif
  23.  
  24. #ifndef NULL
  25. #define NULL ((void *) 0)
  26. #endif
  27.  
  28. #ifndef null
  29. #define null ((void *) 0)
  30. #endif
  31.  
  32. #ifndef NIL
  33. #define NIL ((void *) 0)
  34. #endif
  35.  
  36. #ifndef nil
  37. #define nil ((void *) 0)
  38. #endif
  39.  
  40. #define WindowInFront ((WindowPtr)-1)
  41.  
  42. #define NONE 0
  43. #define CENTER 2
  44. #define    THIRD 3
  45.  
  46. /* SICN declarations */
  47. typedef short SICN[16];
  48. typedef SICN *SICNList;
  49. typedef SICNList *SICNHandle;
  50.  
  51. #ifndef    _DialogMgr_
  52. #include "DialogMgr.h"
  53. #endif
  54.  
  55. /* DITL declarations */
  56. typedef struct DITLItem {
  57.     long HorP;
  58.     Rect displayRect;
  59.     char itemType;
  60.     char dataLength;
  61.     } DITLItem, *DITLItemPtr, **DITLItemHandle;
  62.  
  63. OSErr AddDItem(Handle *theDITL, char theType, Rect * theRect, char *param);
  64.  
  65. void PositionRect(Rect *small, Rect *large, int hOption, int vOption);
  66.  
  67. /* SICN Routines */
  68. SICNHandle GetSICN(int sicnID);
  69. long CountSICN(SICNHandle theSICN);
  70. void PlotSICN(Rect *theRect, SICNHandle theSICN, long theIndex);